package com.lanou3g.ptp.api.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.beans.Transient;
import java.util.Date;

@Data
@ApiModel("用户（可以是教师、学生）")
public class User {
    @ApiModelProperty("ID（添加不传）")
    private Long id;
    @ApiModelProperty("手机号")
    private String tel;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("编号")
    private String no;
    @JsonIgnore
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("修改时间")
    private Date updateTime;
    @ApiModelProperty("状态")
    private Integer status;

}
